Skip to content

General and Desktop

This is where all the desktop OS and general Qt questions belong.
83.5k Topics 457.0k Posts
  • using cmake for Scxml

    Solved
    4
    1 Votes
    4 Posts
    738 Views
    W
    Since I'm actually using catkin tools on-top of cmake, some of the key things were as follows: list(APPEND CMAKE_PREFIX_PATH /opt/ros/$ENV{ROS_DISTRO}) list(APPEND CMAKE_PREFIX_PATH /opt/Qt5.12.2/5.12.2/gcc_64) find_package(Qt5 REQUIRED COMPONENTS Core Widgets Scxml ) #CMAKE_AUTOMOC does not work!! qt5_wrap_cpp(SCXML_MOC include/ros_scxml_state.h include/ros_scxml.h ) target_link_libraries(${PROJECT_NAME}_SM ${catkin_LIBRARIES} Qt5::Core Qt5::Scxml Qt5::Widgets )
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • i can't write in programfiles(x86)

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    J.HilkJ
    @Zunneh you should look into QStandardPaths to get cross platform locations to write read and store data https://doc.qt.io/qt-5/qstandardpaths.html For why windows does not allow it, security reasons I would assume. Prevents mallware from messing with with importand programs. To be honest, Windows is a good bit behind on that compared to other os, on Mac for example each program is its own seperated sandbox. Very hard to break out of that 😉
  • Double click on child widget

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    mrjjM
    @Annabela_Cortez Hi If you do like this ( the wrong way) GraphWidget *w = new GraphWidget(this); ui->setupUi(this); Then all kinds of widgets (if any in the UI) will be put on top of your GraphWidget. MainWindow has a special center widget called centralWidget() that will/might cover your widget when the order of insertion is wrong. Even if a widget is transparent, it will/might still eat mouse events. So rule is ui->setupUi(this); always comes first.
  • This topic is deleted!

    Solved
    21
    0 Votes
    21 Posts
    175 Views
  • Record audio and video using Qt 5

    6
    0 Votes
    6 Posts
    5k Views
    F
    Is it possible to use (build) QtMEL library on Android? I need to record short *.mp4 videos with some OpenCV operations and your library looks really good. Could you please provide some tips for *.pro file or other settings?
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Program crashes after deleting the pointer

    Unsolved
    4
    0 Votes
    4 Posts
    549 Views
    KiraK
    Thanks for the explanation
  • scroll of the textBrowser

    Solved
    13
    0 Votes
    13 Posts
    1k Views
    Cobra91151C
    @vale88 Ok. So, make it solved then.
  • Place QWidget inside QTableWidget view

    Unsolved
    7
    0 Votes
    7 Posts
    813 Views
    I
    Hello, I created the button with: button = new QPushButton(table->viewport()); and I update its position on the table to be after the last row each time a new row is inserted.
  • add line x in the QFile (text file )

    Solved
    3
    0 Votes
    3 Posts
    1k Views
    Z
    @JonB ok thank you
  • mathematical function read from JSON

    Unsolved
    4
    0 Votes
    4 Posts
    511 Views
    jsulmJ
    @NotYourFan What do you use for this function? I mean: is it a scripting language? JavaScript? Some custom format? ...?
  • Quit application crashes when using QHeaderView::setSectionResizeMode

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    B
    @J-Hilk I have no clue what that strange thing could be since everything seems to be ok when using QApplication::closeAllWindows(). My form class instance is created on the stack.
  • Objects switching on my HMI

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    C
    @J.Hilk Wow so much help ! Thank you very much, thanks to you I have exactly what I was searching for :) Thanks a lot ! I put solved on the subject !
  • qDebug() is not showing output in QT 5.12.1

    Unsolved
    5
    0 Votes
    5 Posts
    813 Views
    A
    @aha_1980 yes online installer.
  • 0 Votes
    3 Posts
    347 Views
    G
    @Christian-Ehrlicher OK, thanks a lot, now I feel dump, I just copy/paste a code modifying the Create function but not the Construct, with this it actually works as expected: static void *Construct(void *where, const void *t) { if (!t) return new (where) MyClass(CREATE_DEFAULT_MY_CLASS()); return new (where) MyClass(*static_cast<const MyClass*>(t)); } Thanks again
  • QLabel + QImage Error.

    Unsolved
    20
    0 Votes
    20 Posts
    2k Views
    mrjjM
    @Pada_ nope. i dont have 5.4.
  • Scxml: discover transitions available from current state.

    Unsolved
    1
    0 Votes
    1 Posts
    163 Views
    No one has replied
  • QTabWidget does not accept QHelpEngine's central widget

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    SGaistS
    Great ! Then please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)
  • Best way to QtLabel pixmap draw ROI (region of interest)

    Unsolved
    2
    0 Votes
    2 Posts
    532 Views
    SGaistS
    Hi, QRubberBand might be handy for that.