Skip to main content

All Questions

Tagged with
0 votes
1 answer
11 views

Qt5: "socket notifiers cannot be disabled from another thread" issue

I am also facing a similar issue I have a C++ Qt application built on Qt4 and all QTcpSocket implementation was working as expected when I migrated to Qt5 I got this issue: socket notifiers cannot be ...
JOTIRLING SWAMI's user avatar
0 votes
0 answers
29 views

When porting Qt4 to QT5, it prompts that #include<QX11Info> cannot be found

When porting Qt4 to QT5, it prompts that #include cannot be found I have QX11Info under Qtx11Extras, but it reported #include not found. I want to reference the code written in qt4 as a library in my ...
杨建国's user avatar
0 votes
0 answers
224 views

How to remove default blue selection of QTreeWidget?

I have a QTreeWidget with rows having some colors. When I try to select row (using mouse click) row's color changes to blue. I have clicked on middle row To avoid change in color, I used following ...
tushar's user avatar
  • 477
1 vote
0 answers
50 views

Getting wrong name in mouse hover property in Qt

I am having QGraphicsScene which contains many digital gates ( AND,OR,NOR etc ) which are made up of Arc, Polyline, Circle, Straight line etc. I am implementing a feature like, when I hover mouse over ...
tushar's user avatar
  • 477
0 votes
1 answer
40 views

What is different QKeyEvent modifiers in Qt4 and Qt5

When I enter the number pad side of the keyboard in qt4, I want to receive QEvent::KeyPress and process it. However, if I check the modifiers() of the event, KeypadModifier should come in, but ...
holySilver__'s user avatar
1 vote
1 answer
35 views

How to easily recognize searched item in a dense QGraphicsScene?

I have a QGraphicsScene with many QGraphicsItem like circle, rectangle, polylines, arc etc. Every QGraphicsItem has a name. And I have a Search feature which highlights searched items using that name. ...
tushar's user avatar
  • 477
0 votes
0 answers
172 views

How to deselect / dehighlight multiple items using QGraphicsScene::clearSelection()?

I have a QGraphicsScene which has 100+ items. Sometimes I need to highlight and dehighlight multiple items. Here is the code: HighlightObject(QEvent* event) { //Finding object under cursor ...
tushar's user avatar
  • 477
0 votes
1 answer
54 views

Error in typecasting of QGraphicsItemGroup in Qt

I am trying to create a digital gates symbols ( like AND,NAND etc ) using line, arc, circle. To do this I am using QGraphicsItemGroup also. For example. If a symbol contains 3 lines, 2 arc and 1 ...
tushar's user avatar
  • 477
0 votes
1 answer
98 views

How to use arc co-ordinates from .slib file to draw an arc in Qt?

I am trying to generate various gate symbols ( AND,NOT,XNOR,MUX etc) by reading .slib file. But I faced a problem while reading an arc related co-ordinate from .slib file. I am not understanding how ...
tushar's user avatar
  • 477
0 votes
1 answer
119 views

How to draw an arc between known points to draw XNOR gate in Qt?

I want to draw an arc between point E to point G , F to H ( I want to draw XNOR gate symbol ) I tried this way path.moveTo(72,10); // for E --> G QRect bound1 (52,10,20,60); path.arcTo(bound1,90,-...
tushar's user avatar
  • 477
0 votes
1 answer
957 views

How to draw an arc between two known points in Qt?

I want to draw an arc between point B to point D and it should touch to point E. ( I want to draw AND gate symbol ) I tried this way QPainterPath path; path.arcTo(60,30,46,100,30*16,120*16); // ( ...
tushar's user avatar
  • 477
0 votes
0 answers
116 views

How to minimize Bounding Rect in qt?

In my view there are 2 lines. 1 Polyline, and 1 straight lines. I am not able to select straight line. If I try to select it , polyline gets selected ( though I have not clicked on it ) Selection of ...
tushar's user avatar
  • 477
0 votes
1 answer
355 views

Selection of lines through mouse click is not sharp in Qt

In my view there are 3 lines. 1 Polyline, and 2 straight lines. I have named them as P1 and s1 and s2 I am not able to select s1 line. If I try to select it , P1 gets selected ( though I have not ...
tushar's user avatar
  • 477
0 votes
0 answers
49 views

U shaped poly-lines giving a trouble in selecting other poly-lines in Qt

I have QGraphicsView which contains many rectangles and polylines. My view looks something like this. If I click on position A , B, C , D orange color polyline gets selected. If I try to select ...
tushar's user avatar
  • 477
0 votes
0 answers
67 views

Text is not appearing at specified position in Qt

I have a QGraphicsView which contains many QGraphicsItem like rectangle, polylines etc. I want to name each rectangle and name is on the rectangle. Name should be centrally aligned i.e. half of the ...
tushar's user avatar
  • 477

15 30 50 per page
1
2 3 4 5
18