Skip to content
  • 0 Votes
    3 Posts
    16 Views
    B

    @jsulm Yes, I use manual layout and don't use vertical layout or horizontal layout, should I use that?

  • Lottie Creator X QT

    Unsolved Wiki Discussion
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • 0 Votes
    9 Posts
    81 Views
    T

    @Thanush said in Video plays on a new Window while launched through gstreamer in Qt6 qml application:

    GstElement *sink = gst_element_factory_make ("qmlglsink", NULL);

    This returns a null pointer, I'm not sure why

  • 0 Votes
    1 Posts
    4 Views
    No one has replied
  • 0 Votes
    1 Posts
    4 Views
    No one has replied
  • 0 Votes
    12 Posts
    28 Views
    jsulmJ

    I don't know what the problem is. You can compare your setup (SDK version, NDK version, JDK version, ...) to the setup your friend has.

  • 0 Votes
    1 Posts
    8 Views
    No one has replied
  • 0 Votes
    4 Posts
    30 Views
    JonBJ

    If you are saying you have a licensed commercial version of Qt then you can ask TQtC about this.

  • ui detect mouse event on objects

    Unsolved General and Desktop
    22
    0 Votes
    22 Posts
    225 Views
    JonBJ

    @Pfanne

    @JonB said in ui detect mouse event on objects:

    @mpergand said in ui detect mouse event on objects:

    &MainWindow::on_ioGroup_clicked);

    OIC I missed that when OP said it was correct.

    You can see for yourself (when it's written in monospace) that in your
    connect(ioGroup, &QButtonGroup::idClicked, this, MainWindow::on_ioGroup_clicked);

    one method reference has a preceding & and the other does not, and thereby tell what you had is not correct.

  • Forum Updated to NodeBB 3.7.4

    Announcements
    8
    4 Votes
    8 Posts
    107 Views
    Nhan NguyenN

    @SimonSchroeder hello, I'm the developer who is responsible for the Forum upgrade. This changes is not intended by us and basically came from the upgraded NodeBB core. I will try to investigate and bring back the old style

  • Deployment on macOS

    Solved Installation and Deployment
    7
    0 Votes
    7 Posts
    76 Views
    S

    @MortyMars said in Deployment on macOS:

    I haven't got round to it yet, but which options do you think are the most common and the most useful?

    We found it necessary to do a few steps on macOS in order to get everything working. The last step is to make the .dmg a little nicer. Here is the script we are using:

    #!/bin/bash echo Delete old application folder. rm -rf MyApp.app echo Copy new application folder. cp -r ../release/MyApp.app ./ install_name_tool -change /usr/local/lib/libomp.dylib @rpath/libomp.dylib MyApp.app/Contents/MacOS/MyApp mkdir -p MyApp.app/Contents/Frameworks cp libomp.dylib MyApp.app/Contents/Frameworks/ cp ../../3rdparty/lib3rdparty.dylib MyApp.app/Contents/Frameworks/ echo Bundle Qt libs. /full/path/to/macdeployqt MyApp.app echo Package examples. cp -r examples MyApp.app/Contents/Resources/ echo Create dmg. rm MyApp.dmg bin/create-dmg --volname "MyApp Installer" --background ../src/rc/mac_dmg_background.png --window-pos 200 120 --window-size 598 465 --icon-size 80 --icon MyApp.app 150 330 --hide-extension "MyApp.app" --app-drop-link 450 330 MyApp.dmg MyApp.app echo Done.

    You see some extra steps that are necessary in our case. For libomp we need to change the rpath, we need to add some dynamic libraries by hand, and we also package some exampled.

    The mac_dmg_background.png has our company logo and two transparent boxes where the app icon and the link to the application folder go. Between these two is an arrow suggesting to move the app to the application folder (for installation). There is an additional mac_dmg_background@2x.png for Retina displays in the same folder.

  • 0 Votes
    2 Posts
    30 Views
    M

    @kadet1090 I'm not sure if it's supported but try

    QTreeView::item:selected { background: transparent; }
  • 0 Votes
    1 Posts
    9 Views
    No one has replied
  • avoiding the use of hard-coded strings

    Unsolved Brainstorm
    8
    0 Votes
    8 Posts
    68 Views
    S

    @mzimmers said in avoiding the use of hard-coded strings:

    I'm trying to determine how best to put all of my labels (using the term generically) into a single location that can be easily modified by a non-programmer. The goal would be to have no hard-coded strings in my code; they'd all reside in some file that could be altered by a technical writer or someone else.

    Even if your original labels are written down in English you can still have an English translation. (We do use English translations just for plurals. There is a command to just extract entries containing %n.) Translatable strings can also have an additional comment/description. This can help to clarify (and disambiguate) what you actually meant. Maybe use something to make it clear that a string needs still translation, e.g. instead of using the string My label use something like >>>MY LABEL<<< instead. This makes it easy to spot string not yet translated to English. Or use the variable name as the string to be translated (camelCase or snake_case would be easy to spot as well). Your English "translation" would be the single file for your technical writer.

  • Changing tray Icon on signal

    Unsolved General and Desktop
    4
    0 Votes
    4 Posts
    36 Views
    C

    @__d4ve__ Further to @jsulm's question, you may find it useful to add this at the top of the TrayIconApp constructor/destructor

    qDebug() << "Construct" << this; qDebug() << "Destruct" << this;

    and this in the slot:

    qDebug() << this << "onSyncChanged called with:" << sync;

    Then you will see which TrayIconApp object gets created and which object, if any, receives sent signals.

    What is the life span of client? In your connect(), client appears to be a stack-based instance of the Client class.

  • 0 Votes
    1 Posts
    8 Views
    No one has replied
  • How to iterate QList ?

    Unsolved C++ Gurus
    6
    0 Votes
    6 Posts
    64 Views
    J.HilkJ

    I would recommend to no longer use Q_FOREACH it is deprecated for a reason! Use the ranged based for loop the c++ standard offers
    for (auto &item : container)

    less error prone, less conflict with other libraries, faster compile times.

  • 0 Votes
    8 Posts
    45 Views
    S

    @J-Hilk
    add_executable(client
    client_main.cpp
    client_main_window.cpp
    client_manager.cpp
    client_chat_window.cpp
    chat_protocol.cpp
    chat_line.cpp
    )
    target_link_libraries(client PRIVATE database_library)

    qt_add_resources(client "images"
    PREFIX "/images"
    FILES send_icon.png
    )

    set(MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist)

    set_target_properties(client PROPERTIES MACOSX_BUNDLE ON)

    This is the CMake file related to the executable I am having prob ton have access to the Microphone. I did setup the Info.plist file.

  • Using nomake in QT(4.8.7)

    Unsolved Qt WebKit
    3
    0 Votes
    3 Posts
    20 Views
    A

    @jsulm Thankyou so much

  • Button over QVideoWidget

    Unsolved Mobile and Embedded
    8
    0 Votes
    8 Posts
    114 Views
    B

    In QT6 the button hide behind video.