All Questions
262
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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
...
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 ...
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 ...
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,-...
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); // ( ...
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 ...
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 ...
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 ...
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 ...