Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.4k Topics 456.4k Posts
  • QImage(img.data,...) out of scope - img.data gets deleted when QImage is destroyed

    Unsolved
    13
    0 Votes
    13 Posts
    582 Views
    SGaistS
    You are not doing the resizing with OpenCV.
  • Problem with my class and QProcess

    Solved
    6
    0 Votes
    6 Posts
    364 Views
    SGaistS
    Hi, A full rebuild is not strictly required however running qmake before building is when adding or removing the Q_OBJECT macro as moc must do its job when added and otherwise not run when removed. But when I doubt, full rebuild often helps.
  • No Qtsql.framework dylib file

    Unsolved
    17
    0 Votes
    17 Posts
    868 Views
    SGaistS
    Which version are you building from ?
  • Qt6, QLoaderNetwork and http requests

    Solved
    6
    0 Votes
    6 Posts
    298 Views
    bunjee207B
    My bad, it seems the issue was on my side. I'm closing this.
  • QListWidget not updating

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    I
    @JonB You've done more than enough, thanks Time to read I guess haha
  • Slot gets not invoked

    Solved
    8
    0 Votes
    8 Posts
    576 Views
    SGaistS
    @makopo What was the issue ?
  • How to plot Barchart using database queries

    Unsolved
    2
    0 Votes
    2 Posts
    298 Views
    JonBJ
    @LT-K101 said in How to plot Barchart using database queries: implementing this using the values from the sql queries seem confusing. What does this mean? What are you actually asking us?? The fact that you get data from a database has no connection to code for adding bars on a chart. Your series appending looks OK, only you know what is in first_value etc. and how you got it from the database. I don't see what you think someone else can say. Break your problem into two: Get the bar/pie chart right by testing with sample hard-coded values, no database. Get your data from database queries, printing out the results, no charts. Then just connect the two bits of code.
  • Serial port buffer Size

    Solved
    3
    0 Votes
    3 Posts
    2k Views
    mrjjM
    Hi Depending on the SENDING hardware, the payload will come in one or more "waves"/readAll() So once recievedData.size() is the expected size, all data has been read. There is no setting to avoid this. Its how it works.
  • QComboBox FramelessWindowHint not work on MacOS

    Unsolved
    1
    0 Votes
    1 Posts
    321 Views
    No one has replied
  • QMediaPlayer will cause window not response while stop play video.

    Unsolved
    3
    0 Votes
    3 Posts
    222 Views
    MozzieM
    @SGaist Thank you
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Weird layout behaviour

    Unsolved
    1
    0 Votes
    1 Posts
    104 Views
    No one has replied
  • How to use cut/copy/paste QKeySequence actions?

    Unsolved
    6
    0 Votes
    6 Posts
    583 Views
    SGaistS
    Use actions and connect them to the cut, copy, paste slots.
  • macOS Monterey 12.1, broken builds after update.

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    artwawA
    @SPlatten I don't know, really. It works on my iMac. I would, however, recommend to reinstall the command line tools - this would trigger reinstallation of the SDK
  • problem with QNetworkAccessManager

    Unsolved
    7
    0 Votes
    7 Posts
    617 Views
    Christian EhrlicherC
    @millo98 said in problem with QNetworkAccessManager: the program build but don't run with 'Process finished with exit code -1073741515 (0xC0000135)' Use a debugger to see where it crashes... /edit: 0xC0000135 looks like a missing dll, can you start debugging at all?
  • How to add data to SignalTransition in StateMachine

    Unsolved
    3
    0 Votes
    3 Posts
    450 Views
    P
    in my example i have 3 states, so i need make something like: connect(state1, &MyState::transitionToState2Required, state2, &MyState::onTransitionExecuted); connect(state1, &MyState::transitionToState3Required, state3, &MyState::onTransitionExecuted); connect(state2, &MyState::transitionToState1Required, state1, &MyState::onTransitionExecuted); connect(state2, &MyState::transitionToState3Required, state3, &MyState::onTransitionExecuted); connect(state3, &MyState::transitionToState1Required, state1, &MyState::onTransitionExecuted); connect(state3, &MyState::transitionToState2Required, state2, &MyState::onTransitionExecuted); but if i have about 10 states I'll need to create about 100 such connections. may be there is any general mechanism? as i understand, if make like this: connect(state1, &MyState::transitionToState2Required, state2, &MyState::beforeTransitionExecuted); state1->addTransition(state1, &MyState::transitionToState2Required, state2); slot beforeTransitionExecuted will called before transition and i can save data in target slot? and if i make: state1->addTransition(state1, &MyState::transitionToState2Required, state2); connect(state1, &MyState::transitionToState2Required, state2, &MyState::onTransitionExecuted); transition will be executed early and only then onTransitionExecuted will be called? so it's better to use first variant?
  • Addressbook example: separation of concerns

    Unsolved
    11
    0 Votes
    11 Posts
    813 Views
    Christian EhrlicherC
    @nouwaarom said in Addressbook example: separation of concerns: Then the view will call TableModel::setData for these columns when they are double clicked and their value is updated. So what's different from the example then? That a separate widget instead a view updates the data? Who says that 'the view' must be a single widget?
  • [CMake] Linking errors using MSVC

    Solved
    13
    0 Votes
    13 Posts
    4k Views
    D
    Oh right, thanks for the heads up. EDIT : So the best solution I think would be to use the PATH by default, or set CMAKE_PREFIX_PATH through CMakeUserPresets.json on another machine if necessary
  • 0 Votes
    9 Posts
    6k Views
    JKSHJ
    @grazia88g said in How to compile QT open-source for windows 64 bit using visual studio 2012: has anyone ever done the same for Visual Studio 2010? Qt 5.7 and newer cannot be built with Visual Studio 2010
  • How to enable RootIsDecorated in QTreeView if the first column is hidden

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    JonBJ
    @AndreasF Given the behaviour it apparently has, maybe you could insert a QIdentityProxyModel-derived class between the view and your model to "map" the first visible column to be the first one if that is required?