Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.6k Topics 457.4k Posts
  • Problem with QGraphicsLineItem, it keeps "flashing"

    Unsolved
    5
    0 Votes
    5 Posts
    479 Views
    F
    I don't know why but if i use just setLine(QLineF(myStartItem->pos(),myEndItem->pos())); instead of setLine(QLineF(myStartItem->pos()+p,myEndItem->pos()+p)); //p is abitrary point it works just fine, doesn't flashes and it makes no sense to me
  • how to set save variables into a QList iterating it?

    Solved
    2
    0 Votes
    2 Posts
    233 Views
    Christian EhrlicherC
    @ripley said in how to set save variables into a QList iterating it?: QList<QLabel> First this won't work - you can save a pointer to an object in a container but not the object itself. Second - you want a vector, not a list Storing them in a loop is possible but I don't think it's really needed for three elements for (QLabel *l : {variable_1, variable_2, variable_3}) list.push_back(l);
  • QTextEdit lags when starting to write

    Unsolved
    13
    1 Votes
    13 Posts
    2k Views
    Y
    I have the exact same issue #include <QtWidgets/QApplication> #include <QtWidgets/QTextEdit> int main(int argc, char* argv[]) { QApplication a(argc, argv); QTextEdit textEdit; textEdit.show(); return a.exec(); } Just this is enough to make QTextEdit lag like @legitnameyo said. Maybe because of different hardware but on my PC it takes about 0.5 seconds before something appears in the text edit. EDIT: yes it happens even in Release mode without a debugger attached Qt: 5.13.0 msvc2017_64
  • How can i use Widget from Qt designer to add a QWidget inside of it from the code

    Unsolved
    2
    0 Votes
    2 Posts
    538 Views
    mrjjM
    Hi Any widget you add in the designer is accessible via ui->widgetname So if you place your code after setupUI in constructor then you can just use it like any normal pointer that you new'd yourself
  • 0 Votes
    3 Posts
    247 Views
    SGaistS
    Hi, In addition to what @mrjj suggested, you likely want to model that with a statemachine.
  • Deploy step failed in qt5

    Unsolved
    12
    0 Votes
    12 Posts
    3k Views
    A
    Hi, here is the attachement of qt version,compiler and error(which i am getting)[image: 48f92640-1c1f-444d-94f0-404aaa8854a5.png][image: af8a3889-077b-4e6d-ae0f-524da8a9ff97.png] [image: 2640002d-9ead-45cf-88ed-4ba2cb5347ce.png] please go through that,if i talk about Device means Yes I am using the embedded,beagleboneboard(device connection is this board only,in command prompt I connected that using :"ssh debian@192.168.7.2").
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    33 Views
    No one has replied
  • no valid kits found - when configuring a project

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    B
    @sgaist I solved: [image: 7ff0b869-05bb-41d9-90f9-42178f416819.png] Thank you very much!
  • Auto generate PDF's

    Unsolved
    8
    0 Votes
    8 Posts
    878 Views
    SGaistS
    Hi, That's because you are on macOS. The system natively supports printing in a PDF.
  • "QPaintEngine* MyQWidget::paintEngine() const" Never called!

    Unsolved
    3
    0 Votes
    3 Posts
    301 Views
    SGaistS
    Hi and welcome to devnet, What version of Qt are you using ? What OS are you running ?
  • 0 Votes
    4 Posts
    521 Views
    SGaistS
    Hi, Are you sure you built the qtserialport module as part of your static build ? Did you check the content of the lib folder of your build ?
  • Bind QWebSocket & QNetworkAccessManager to specific local Interface/IP?

    Unsolved
    8
    0 Votes
    8 Posts
    1k Views
    Christian EhrlicherC
    I would add something like QWebSocket::setBindAddress(const QHostAddress &address, quint16 port = 0, QAbstractSocket::BindMode mode = DefaultForPlatform) which could then be used in QWebSocketPrivate::open()
  • Multi processes in a single GUI application.

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    S
    Then the way to go would be TCP for IPC with QDataStream with good protocol or shared memory. I dont know which WindowManager is suitable Windows for the different processes. Maybe as good starting point for study is https://doc.qt.io/Neptune3UI/neptune3ui-overview.html, the source code is available in Github. Be aware is for Linux and not Windows.
  • dataChanged API causing stack overflow when moving from QT5.12.1 to QT5.12.4/QT5.13

    Unsolved
    2
    0 Votes
    2 Posts
    209 Views
    Pablo J. RoginaP
    @shuga said in dataChanged API causing stack overflow when moving from QT5.12.1 to QT5.12.4/QT5.13: the API "dataChanged" is not returning correctly You may need to post some code snippets, we're not magicians... Please show how you're connecting such signal "dataChanged" and what the slot is doing. Also information about OS version and compiler used would be helpful
  • QListWidget: DragDrop event Signal

    Solved
    6
    0 Votes
    6 Posts
    2k Views
    SGaistS
    One other possibility would be to implement your own QAbstractListModel on top of your object list. That way you would directly manipulate the structure without additional back and forth of your data.
  • QJsonArray: Reordering the items

    Solved
    4
    0 Votes
    4 Posts
    392 Views
    F
    I solved this problem and post a generic solution here: https://forum.qt.io/topic/106344/qlistwidget-dragdrop-event-signal/5
  • QDatastream deserialze Q_PROPERTY signal change

    Solved
    6
    0 Votes
    6 Posts
    446 Views
    Gojir4G
    @shazter The way you manage errors are IMHO depending of the context of the application and how you want it to behave. I don't think a method is better than another.
  • QToolBar and QAction Styling

    Unsolved
    3
    0 Votes
    3 Posts
    480 Views
    R
    @sgaist Hello, I found a work around. And removed the border image entirely. Then used a QLabel to place the image exactly where I want it.
  • Qt::SizeHorCursor cursor shape on macOS

    Unsolved
    1
    1 Votes
    1 Posts
    263 Views
    No one has replied
  • Mqtt V5 Request & Response example

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    S
    Yes, I saw this one pager, but is describes more the other features instead of the request and response feature. I hope he will create a new blog soon with some small examples how to use.