Skip to content
  • 139k Topics
    702k Posts
    jsulmJ

    Please provide more information.
    How exactly are you building?
    What build system is used (QMake or CMake)?
    What Qt version?

    "from the intstruction" - can you show this instruction?

  • Jobs, project showcases, announcements - anything that isn't directly development
    4k Topics
    22k Posts
    C

    Hi,
    I'm having trouble understanding how to achieve a windows11 native look.
    Its as though the app.setStyle('windows11') doesn't achieve a native windows 11 appearance.

    On the left is a windows native menu and on the right is a standard PySide6 menu which claims to have a native appearance but doesn't have a native appearance and seems to have a white transparent shadow added for some reason.
    I don't believe I've seen dark menu's with white shadows like this anywhere in windows11 so I guess pyside is not detecting windows11 or something.

    Which setting will I have to enable to achieve a native appearance to windows11?
    I seem to be the only person on the internet suffering from this issue and can't really find any information about it.
    Any help would be appreciated. Thanks

    PySide 6.7.2

    a74e405e-cdf9-4e75-a391-e8e2c9a6e818-image.png

    from PySide6.QtCore import * from PySide6.QtGui import * from PySide6.QtWidgets import * import sys class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("Window") self.setGeometry(100, 100, 800, 600) self.main_widget = QWidget() self.setCentralWidget(self.main_widget) self.init_ui() def init_ui(self): main_layout = QVBoxLayout() self.main_widget.setLayout(main_layout) # Create a simple menu bar with a File menu menubar = self.menuBar() file_menu = menubar.addMenu("File") open_action = QAction("Open", self) open_action.setShortcut("Ctrl+O") open_action.triggered.connect(self.open_file) file_menu.addAction(open_action) save_action = QAction("Save", self) save_action.setShortcut("Ctrl+S") save_action.triggered.connect(self.save_file) file_menu.addAction(save_action) exit_action = QAction("Exit", self) exit_action.setShortcut("Ctrl+Q") exit_action.triggered.connect(self.close) file_menu.addAction(exit_action) if __name__ == "__main__": app = QApplication(sys.argv) app.setStyle("windows11") window = MainWindow() window.show() sys.exit(app.exec())
  • Everything related to designing and design tools

    97 Topics
    294 Posts
    C

    Solved by updating importPaths in .qmlproject and creating a NEW qmldir file in the actual folder (PROJECT_NAME/imports/MODULE_NAME/qmldir) with the following properties:

    module RadialBar RadialBar 1.0 RadialBar.qml

    Move the plugin code into PROJECT_NAME/imports/MODULE_NAME/ and call it using import RadialBar 1.0.

    Then restart Qt Design Studio.

  • Everything related to the QA Tools

    49 Topics
    145 Posts
    B

    Hi @clanhuth,

    Thanks for the advice! I will look into this.

    Cheers,
    Bo

  • Everything related to learning Qt.

    361 Topics
    2k Posts
    Ash_QtA

    Hey there!

    So just to confirm you are using and have installed QDS with your Qt account that is linked to an educational email address?

    Has this account been linked to an evaluation license before?

  • 2k Topics
    12k Posts
    jsulmJ

    @Qtpp said in How to find symbols in extern code files or projects and get their "type" (code analysis library)?:

    is it somehow possible to reach out to one of the QtCreator maintainers/devs

    https://lists.qt-project.org/listinfo/qt-creator

  • 4k Topics
    17k Posts
    D

    在Pyside6(6.7),我添加了一个QCalendar,

    calendar = QCalendar()

    我苦心研究如何将其设置为阴历,目的是在将来能够判断阴历节日。

    此时我通过浏览相应文档,我知道它有一个函数 isLunar(),他也确实如描述所说,当不是阴历时会返回False。我认为这代表着QCalendar 支持且能够被设置成阴历。

    然而,我除了这个东西之外就再也没有找到过任何与阴历有关的东西了。显而易见,QCalendar.System 里面没有包含阴历,我尝试使用过name,但不知道在哪里获得那些支持的日历的name。(这个举措可能是由于我知识过于浅薄才做的)
    所以那几个常用于设置日历的方法基本上都不太可能设置阴历,而在其他地方更是无迹可寻。

    阴历到底该如何设置呢?我想我需要点帮助。
    如果有必要,我在之后会发送全部的代码

  • This is where all the posts related to the Qt web services go. Including severe sillyness.
    1k Topics
    10k Posts
    B

    For info: download.qt.io has been intermittently down for me for the past few days, breaking CI builds relying on aqtinstall.

    Error messages are:

    /Users/runner/hostedtoolcache/Python/3.7.17/x64/bin/python3 -m aqt install-qt mac desktop 5.15.2 --outputdir /Users/runner/work/vgc/Qt INFO : aqtinstall(aqt) v3.1.15 on Python 3.7.17 [CPython Clang 13.0.0 (clang-1300.0.29.30)] WARNING : Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors. WARNING : Connection to 'https://download.qt.io' failed. Retrying with fallback 'https://mirrors.aliyun.com/qt/'. WARNING : Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors. WARNING : Caught ChecksumDownloadFailure, terminating installer workers ERROR : Failed to download checksum for the file '5.15.2-0-202011130601qtbase-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z' from mirrors '['https://download.qt.io'] ==============================Suggested follow-up:============================== * Check your internet connection * Consider modifying `requests.max_retries_to_retrieve_hash` in settings.ini * Consider modifying `mirrors.trusted_mirrors` in settings.ini (see https://aqtinstall.readthedocs.io/en/stable/configuration.html#configuration)